package com.jyh.controller.basicBi;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.jyh.service.basicBi.StatistService;


@Controller
@RequestMapping(value = "/statist")
public class StatistController {
	
	@Autowired
	private StatistService statisticsService;
	
	@RequestMapping("/list")
	public ModelAndView getBasicNew(HttpServletRequest request){
		String page = request.getParameter("currentPage");// 传过来的页数
		ModelAndView mv = statisticsService.getStatistList(page);
		return mv;
	}
	
	@RequestMapping("/analysis")
	public ModelAndView getAnalysis(HttpServletRequest request){
		String time = request.getParameter("time");
		ModelAndView mv = statisticsService.getAnalysis(time);
		return mv;
	}

}
